import {get, post, put, DELETE } from '../utils/request'

export function yhGet(params) {
    return get('/api/v1/admin/users', { params })
}

export function yhAdd(data) {
    return post('/api/v1/admin/users', data)
}

export function yhEditGet(id) {
    return get("/api/v1/admin/users/" + id)
}

export function yhEdit(id, params) {
    return put("/api/v1/admin/users/" + id, params)
}

export function yhDelete(id) {
    return DELETE("/api/v1/admin/users/" + id)
}